package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AppUserNoticeMapper;
import com.ruoyi.system.domain.AppUserNotice;
import com.ruoyi.system.service.IAppUserNoticeService;
import com.ruoyi.common.core.text.Convert;

/**
 * 用户通知记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-07-31
 */
@Service
public class AppUserNoticeServiceImpl implements IAppUserNoticeService 
{
    @Autowired
    private AppUserNoticeMapper appUserNoticeMapper;

    /**
     * 查询用户通知记录
     * 
     * @param userName 用户通知记录ID
     * @return 用户通知记录
     */
    @Override
    public AppUserNotice selectAppUserNoticeById(String userName)
    {
        return appUserNoticeMapper.selectAppUserNoticeById(userName);
    }

    /**
     * 查询用户通知记录列表
     * 
     * @param appUserNotice 用户通知记录
     * @return 用户通知记录
     */
    @Override
    public List<AppUserNotice> selectAppUserNoticeList(AppUserNotice appUserNotice)
    {
        return appUserNoticeMapper.selectAppUserNoticeList(appUserNotice);
    }

    /**
     * 新增用户通知记录
     * 
     * @param appUserNotice 用户通知记录
     * @return 结果
     */
    @Override
    public int insertAppUserNotice(AppUserNotice appUserNotice)
    {
        return appUserNoticeMapper.insertAppUserNotice(appUserNotice);
    }

    /**
     * 修改用户通知记录
     * 
     * @param appUserNotice 用户通知记录
     * @return 结果
     */
    @Override
    public int updateAppUserNotice(AppUserNotice appUserNotice)
    {
        return appUserNoticeMapper.updateAppUserNotice(appUserNotice);
    }

    /**
     * 删除用户通知记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteAppUserNoticeByIds(String ids)
    {
        return appUserNoticeMapper.deleteAppUserNoticeByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除用户通知记录信息
     * 
     * @param userName 用户通知记录ID
     * @return 结果
     */
    @Override
    public int deleteAppUserNoticeById(String userName)
    {
        return appUserNoticeMapper.deleteAppUserNoticeById(userName);
    }

    /**
     * 删除
     * @param appUserNotice
     * @return
     */
    @Override
    public int del(AppUserNotice appUserNotice) {
        return appUserNoticeMapper.del(appUserNotice);
    }
}
